str=input()
print(str[-1::-1])